<?php
namespace app\notice\model;

use \app\common\library\Model;

class Notice extends Model
{
    protected $append = [
        'status_text',
    ]; 


    protected function getStatusTextAttr($value,$data)
    {
        if(!isset($data['status'])){
            return '';
        }
        $type = [0 => '禁用', 1 => '启用'];

        return $type[$data['status']];

    }

}
